package org.familysearch.fsapi.gwt.common.client.entities;

import java.util.Date;

import com.google.gwt.user.client.rpc.IsSerializable;

public class Temple implements IsSerializable {

	private String code;
	private String name;
	private String location;
	private Date dedicationDate;
	
	public Temple()
	{
		
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public Date getDedicationDate() {
		return dedicationDate;
	}

	public void setDedicationDate(Date dedicationDate) {
		this.dedicationDate = dedicationDate;
	}

	public String getLocation() {
		return location;
	}

	public void setLocation(String location) {
		this.location = location;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public String toString()
	{
		String str = ""
			+ "[temple"
			+ "[code=" + this.getCode() + "]"
			+ "[name=" + this.getName() + "]"
			+ "[location=" + this.getLocation() + "]";
		if( this.getDedicationDate() != null )
		{
			str += "[dedication-date=" + this.getDedicationDate().toLocaleString() + "]";
		}
		else
		{
			str += "[dedication-date=null]";
		}
		
		str += "]";
		return str;
	}
	
}
